package com.fulllife.food.controller;

import com.fulllife.food.entity.HarmEntity;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.hswebframework.ezorm.rdb.mapping.ReactiveRepository;
import org.hswebframework.web.crud.web.reactive.ReactiveCrudController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/harm")
@Tag(name = "菜品")
public class HarmController implements ReactiveCrudController<HarmEntity, String> {

    @Resource
    private ReactiveRepository<HarmEntity, String> reactiveRepository;

    @Override
    public ReactiveRepository<HarmEntity, String> getRepository() {
        return reactiveRepository;
    }
}
